package com.objectdraw.client.objectdraw;
//import java.awt.*;
import java.util.*;

/**
 * runs through the list of tools to be added 
 * 
 * @author jgulik, cfruehan
 *
 */
public class ToolListIterator {
   
  @SuppressWarnings("unchecked")
private Enumeration enumer;

  /**
   * initialize a tool list iterator with the provided list
   * @param list list to be enumerated
   */
  @SuppressWarnings("unchecked")
public ToolListIterator(java.util.Vector list) {
    enumer = list.elements();
  }
  
  /**
   * checks to see if there is another item in the list
   * @return true or false based upon if there is another item
   */
  public boolean hasNext() {
   return enumer.hasMoreElements();
 }

  /**
   * 
   * @return the next item in the list
   */
  public Object next() {
    return enumer.nextElement();
  }

}
